package com.jvm.classloader;

/**
 *
 */

class Parent02{

    static int a = 3;

    static {
        System.out.println("Parent02 static block");
    }
}

class Child02 extends Parent02{

    static int b = 4;

    static {
        System.out.println("Child02 static block");
    }
}

public class MyTest10 {

    static {
        System.out.println("MyTest10 static block");
    }

    public static void main(String[] args) {
        Parent02 parent02;
        System.out.println("------");

        parent02 = new Parent02();
        System.out.println("------");

        System.out.println(Parent02.a);
        System.out.println("------");
        System.out.println(Child02.b);
    }
}
